using IcsSEMCtrl.Global;
using IcsSEMCtrl.Util.Client;
using System;
using System.IO;
using System.Runtime.Remoting;
namespace IcsSEMCtrl.Boot
{
	public class Server : ECPObject
	{
		public static readonly string CLASS = "Server";
		private Launcher launcher = null;
		public Server()
		{
			this.launcher = Launcher.GetLauncher();
			launcher.LoadAllManagers();
			log4net.Config.XmlConfigurator.Configure(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "log4net.config"));
		}
		public void Init(string remoteConfigFilename)
		{
			Naming.Init(remoteConfigFilename);
			RemotingServices.Marshal(this.launcher, "Launcher");
		}
		public void Init()
		{
			Naming.Init(this.launcher);
		}
		public void ProcessingMessage()
		{
			Console.ReadLine();
		}
		public override bool IsAlive()
		{
			return true;
		}
	}
}
